<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3动画</title>
<style>
	#box1{ width:50px; height:50px; background:red; 
		animation:2s move 3; animation-direction:reverse;}  
	#box2{ width:50px; height:50px; background:blue; 
	 	animation:2s move 4; animation-direction:alternate; }
	@keyframes move{
		0%{ transform:translate(0,0); }
		100%{ transform:translate(100px,0); } 
	}
</style>
</head>
<body>
	<div id="box1"></div><br>
    <div id="box2"></div>
</body>
</html>
